package top.tocchen.bookshop.service.impl;

import top.tocchen.bookshop.dao.OrderDao;
import top.tocchen.bookshop.entity.OrderEntity;
import top.tocchen.bookshop.entity.OrderDoEntity;
import top.tocchen.bookshop.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: tocchen
 * Date: 2021-05-13
 * Time: 13:34
 */
@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    OrderDao orderDao;
    @Override
    public List<OrderDoEntity> findAll(Integer userID) {
        return orderDao.findAll(userID);
    }
    @Override
    public int insertSelective(OrderEntity record){
        return orderDao.insertSelective(record);
    }

    @Override
    public int insert(OrderEntity record) {
        return orderDao.insert(record);
    }
}
